import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import {postRequest} from "./utils/api"
import {putRequest} from "./utils/api"
import {getRequest} from "./utils/api"
import {deleteRequest} from "./utils/api"


const app = createApp(App)

//插件形式使用请求
app.config.globalProperties.postRequest = postRequest;
app.config.globalProperties.putRequest = putRequest;
app.config.globalProperties.getRequest = getRequest;
app.config.globalProperties.deleteRequest = deleteRequest;

app.use(router)
app.use(ElementPlus)
app.mount('#app')


